package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EmployeeListMapper;
import com.ruoyi.system.domain.EmployeeList;
import com.ruoyi.system.service.IEmployeeListService;

/**
 * 员工列Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class EmployeeListServiceImpl implements IEmployeeListService
{
    @Autowired
    private EmployeeListMapper employeeListMapper;

    /**
     * 通过id查询员工
     *
     * @param id 员工列主键
     * @return 员工列
     */
    @Override
    public EmployeeList selectEmployeeListById(Long id)
    {
        return employeeListMapper.selectEmployeeListById(id);
    }

    /**
     * 查询员工列列表
     *
     * @param employeeList 员工列
     * @return 员工列
     */
    @Override
    public List<EmployeeList> selectEmployeeListList(EmployeeList employeeList)
    {
        return employeeListMapper.selectEmployeeListList(employeeList);
    }

    /**
     * 新增员工
     *
     * @param employeeList 员工列
     * @return 结果
     */
    @Override
    public int insertEmployeeList(EmployeeList employeeList)
    {
        return employeeListMapper.insertEmployeeList(employeeList);
    }

    /**
     * 修改员工
     *
     * @param employeeList 员工列
     * @return 结果
     */
    @Override
    public int updateEmployeeList(EmployeeList employeeList)
    {
        return employeeListMapper.updateEmployeeList(employeeList);
    }

    /**
     * 通过id批量删除员工信息
     *
     * @param ids 需要删除的员工列主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeListByIds(Long[] ids)
    {
        return employeeListMapper.deleteEmployeeListByIds(ids);
    }

    /**
     * 通过id删除员工列信息
     *
     * @param id 员工列主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeListById(Long id)
    {
        return employeeListMapper.deleteEmployeeListById(id);
    }
}
